package com.heima.model.user.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * APP用户频道信息表
 * </p>
 *
 * @author itheima
 */
@Data
@TableName("ap_user_channel")
public class ApUserChannel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 频道ID
     */
    @TableField("channel_id")
    private Integer channelId;

    /**
     * 是否订阅
     * 1：订阅   true
     * 0：取消订阅   false
     */
    @TableField("is_subscribe")
    private Boolean isSubscribe;

    /**
     * 用户自定义排序
     */
    @TableField("ord")
    private Integer ord;

    /**
     * 创建时间
     */
    @TableField("created_time")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField("updated_time")
    private Date updatedTime;
}
